using System;
using System.Collections.Generic;
using System.Threading;

namespace SampleWebApplication.code
{
    public class ServerNotes : INotes
    {
        private DateTime _creationTime = DateTime.Now;

        #region INotes Members

        public IEnumerable<INote> Notes
        {
            get
            {
                yield return new Note
                                 {
                                     Text = "Notes service started at " + _creationTime.ToLongTimeString()
                                 };
                yield return new Note
                                 {
                                     Text = "The current thread id is " + Thread.CurrentThread.ManagedThreadId
                                 };
            }
        }

        #endregion
    }
}